<script type="text/javascript">
    $(function(){
        $('.dropdown-toggle').dropdown();
    });
</script>
<?php
/* @var $this BackendController */
/* @var $model Menu */

$this->breadcrumbs=array(
    Yii::t('MenuModule.base','Menus')=>array('index'),
    Yii::t('MenuModule.base',$model->title),
);
?>
<?php if(Yii::app()->user->hasFlash('success')):?>
    <div class="alert alert-success">
        <a class="close" data-dismiss="alert" href="#" aria-hidden="true">&times;</a>
        <p><i class="fa fa-info-circle font22 paddingRight10 alignMiddle"></i><?php echo Yii::app()->user->getFlash('success');?></p>

    </div>
<?php endif;?>
<div class="panel panel-primary">
    <div class="panel-heading">
        <i class="fa fa-eye"></i><span class="h4"><?php echo Yii::t('MenuModule.base','View menu item')?> #<?php echo $model->id; ?></span>
    </div>
    <div class="panel panel-body noPaddingMargin">
        <?php $this->widget('zii.widgets.CDetailView', array(
            'data'=>$model,
            'attributes'=>array(
                'id',
                'title',
                array(
                    'label'=>Yii::t('MenuModule.base','Create time'),
                    'type'=>'raw',
                    'value'=>$model->getCreateTime(),
                ),
                array(
                    'label'=>Yii::t('MenuModule.base','Update time'),
                    'type'=>'raw',
                    'value'=>$model->getUpdateTime(),
                ),
                array(
                    'label'=>Yii::t('MenuModule.base','Parent Menu'),
                    'type'=>'raw',
                    'value'=>$model->parentMenu->item_name,
                ),
                'type',
                'link_path',
                'position',
                array(
                    'label'=>Yii::t('MenuModule.base','Status'),
                    'type'=>'raw',
                    'value'=>$model->getStatusIcon(),
                ),
            ),
        )); ?>
        </div>
</div>